package p270jp.pxv.android.activity;

import android.content.ComponentCallbacks;
import android.os.Bundle;
import androidx.compose.p026ui.platform.C0536v1;
import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;
import com.google.android.material.appbar.MaterialToolbar;
import p014ae.AbstractActivityC0080g0;
import p018ai.PixivSettings;
import p047bg.C1124a;
import p064c6.Preconditions;
import p162fl.WorkTypeRepository;
import p189gn.AbstractC3435a;
import p216hn.Lambda;
import p216hn.Reflection;
import p270jp.pxv.android.R;
import p314lg.ActivityBrowsingHistoryBinding;
import p325m0.MutabilityOwnership;
import p579vo.Qualifier;
import p603wm.AbstractC6949c;
import p665z6.C7461p;

/* compiled from: BrowsingHistoryActivity.kt */
/* renamed from: jp.pxv.android.activity.BrowsingHistoryActivity */
/* loaded from: classes2.dex */
public final class BrowsingHistoryActivity extends AbstractActivityC0080g0 {

    /* renamed from: e0 */
    public static final /* synthetic */ int f18304e0;

    /* renamed from: b0 */
    public ActivityBrowsingHistoryBinding f18305b0;

    /* renamed from: c0 */
    public final AbstractC6949c f18306c0 = Preconditions.m9802P(1, new C3991a(this, null, null));

    /* renamed from: d0 */
    public final AbstractC6949c f18307d0 = Preconditions.m9802P(1, new C3992b(this, null, null));

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.activity.BrowsingHistoryActivity$a */
    /* loaded from: classes2.dex */
    public static final class C3991a extends Lambda implements AbstractC3435a<PixivSettings> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f18308a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C3991a(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f18308a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [ai.b, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final PixivSettings invoke() {
            return C1124a.m10173s(this.f18308a).f24118a.m920a().m621a(Reflection.m5499a(PixivSettings.class), null, null);
        }
    }

    /* compiled from: ComponentCallbackExt.kt */
    /* renamed from: jp.pxv.android.activity.BrowsingHistoryActivity$b */
    /* loaded from: classes2.dex */
    public static final class C3992b extends Lambda implements AbstractC3435a<WorkTypeRepository> {

        /* renamed from: a */
        public final /* synthetic */ ComponentCallbacks f18309a;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        public C3992b(ComponentCallbacks componentCallbacks, Qualifier aVar, AbstractC3435a aVar2) {
            super(0);
            this.f18309a = componentCallbacks;
        }

        /* JADX WARN: Type inference failed for: r0v4, types: [fl.e, java.lang.Object] */
        @Override // p189gn.AbstractC3435a
        public final WorkTypeRepository invoke() {
            return C1124a.m10173s(this.f18309a).f24118a.m920a().m621a(Reflection.m5499a(WorkTypeRepository.class), null, null);
        }
    }

    @Override // p270jp.pxv.android.activity.AbstractActivityC4151b, p270jp.pxv.android.activity.BaseActivity, androidx.fragment.app.FragmentActivity, androidx.activity.ComponentActivity, p248j2.ActivityC3902g, android.app.Activity
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        ViewDataBinding d = DataBindingUtil.m11369d(this, R.layout.activity_browsing_history);
        MutabilityOwnership.m3746l(d, "setContentView(this, R.l…ctivity_browsing_history)");
        ActivityBrowsingHistoryBinding cVar = (ActivityBrowsingHistoryBinding) d;
        this.f18305b0 = cVar;
        MaterialToolbar materialToolbar = cVar.f21376u;
        MutabilityOwnership.m3746l(materialToolbar, "binding.toolBar");
        C0536v1.m11537h(this, materialToolbar, R.string.browsing_history);
        ActivityBrowsingHistoryBinding cVar2 = this.f18305b0;
        if (cVar2 != null) {
            cVar2.f21375t.setOnSelectSegmentListener(new C7461p(this, 5));
            ActivityBrowsingHistoryBinding cVar3 = this.f18305b0;
            if (cVar3 != null) {
                cVar3.f21375t.m4467a(getResources().getStringArray(R.array.illustmanga_novel), ((WorkTypeRepository) this.f18307d0.getValue()).m6287b());
            } else {
                MutabilityOwnership.m3737u("binding");
                throw null;
            }
        } else {
            MutabilityOwnership.m3737u("binding");
            throw null;
        }
    }
}
